package cn.com.cloudpioneer.evaluate.mapper;

import cn.com.cloudpioneer.evaluate.model.ResourceModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther maruikai
 * @create 2023/10/7-12:14
 */
public interface ResourceMapper {

    Integer addResource(ResourceModel resourceModel);

    List<ResourceModel> findByObjId(@Param("objId") String objId);

    List<ResourceModel> findByObjIdAndPath(@Param("objId") String objId,@Param("filepath")String filepath);

    ResourceModel findById(@Param("id") long id);

    Integer delFile(@Param("id")long id);

    int getId();
}
